package cn.aitrox.ry.service.alg.controller;


import cn.aitrox.ry.bean.RespResult;
import cn.aitrox.ry.service.alg.api.UltrasoundVideoApi;
import cn.aitrox.ry.service.alg.dto.ultrasound.video.in.VideoTraceInDto;
import cn.aitrox.ry.service.alg.dto.ultrasound.video.out.VideoTraceOutDto;
import cn.aitrox.ry.service.alg.service.UltrasoundVideoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UltrasoundVideoController implements UltrasoundVideoApi {

    @Autowired
    private UltrasoundVideoService ultrasoundVideoService;

    @PostMapping(value = "/alg/video/trace")
    @Override
    public RespResult<VideoTraceOutDto> videoTrace(@RequestBody VideoTraceInDto input) {
        return ultrasoundVideoService.videoTrace(input);
    }
}
